$def with(current)
<div class="navbar">
	<a href="/settings" $(current=='settings' and 'class=active' or '')>配置</a>
	<a href="/published" $(current=='published' and 'class=active' or '')>已发布</a>
	<a href="/draft" $(current=='draft' and 'class=active' or '')>草稿</a>
	<a href="/add" style="float:right;margin-right:0">添加文章</a>
</div>